﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link rel="shortcut icon" th:href="@{/img/favicon.ico}"/>
    <link rel="bookmark" th:href="@{/img/favicon.ico}" type="image/x-icon"/>
    <link th:href="@{/css/style.css}" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" th:src="@{/js/jquery.js}"></script>

    <script type="text/javascript">
        $(function () {
            //导航切换
            $(".menuson .header").click(function () {
                var $parent = $(this).parent();
                $(".menuson>li.active").not($parent).removeClass("active open").find('.sub-menus').hide();
                $parent.addClass("active");
                if (!!$(this).next('.sub-menus').size()) {
                    if ($parent.hasClass("open")) {
                        $parent.removeClass("open").find('.sub-menus').hide();
                    } else {
                        $parent.addClass("open").find('.sub-menus').show();
                    }
                }
            });

            // 三级菜单点击
            $('.sub-menus li').click(function (e) {
                $(".sub-menus li.active").removeClass("active")
                $(this).addClass("active");
            });

            $('.title').click(function () {
                var $ul = $(this).next('ul');
                $('dd').find('.menuson').slideUp();
                if ($ul.is(':visible')) {
                    $(this).next('.menuson').slideUp();
                } else {
                    $(this).next('.menuson').slideDown();
                }
            });
        })
    </script>


</head>

<body style="background:#fff3e1;">
<div class="lefttop">
    <span></span><a href="index.html" target="rightFrame">首页</a>
</div>
<dl class="leftmenu">
    <dd th:each="p : ${session.parentModules}"><!--一级菜单-->
        <div class="title" th:text="${p.moduleRname}"></div>
        <ul class="menuson"><!--所有的级菜单-->
            <li th:each="c : ${session.childModules}" th:if="${c.modulePid==p.moduleId}">
                <cite></cite>
                <a th:href="@{${c.moduleMurl}}"
                   target="rightFrame" th:text="${c.moduleRname}">客户管理</a>
                <i></i>
            </li>
        </ul>
    </dd>

</dl>

</body>
</html>
